:root {
	--table-border-color: var(--wewrite-border-color, #454545);
	--table-border-width: var(--wewrite-border-width, 1px);
	--table-border-style: var(--wewrite-border-style, solid);
	--table-padding: var(--wewrite-padding, 16px);
	--table-margin: var(--wewrite-margin, 0);
	--table-background-color: var(--wewrite-bg, #fff);
	--table-background-color-alt: #eaeaea;
	--table-background-color-hover: var(--wewrite-bg-alt, #0d5c7e);
	--table-font-size: var(--wewrite-font-size, 16px);
	--table-font-weight: var(--wewrite-font-weight, 400);
	--table-line-height: var(--wewrite-line-height, 1.4);
	--table-text-align: var(--wewrite-text-align, left);
	--table-text-indent: var(--wewrite-text-indent, 0);
	--table-text-color: var(--wewrite-text-color, #333);
	--table-header-color: var(--wewrite-header-color, #333);
	--table-header-background-color: #b9b9b9;
	--table-header-font-weight: var(--wewrite-header-font-weight, 600);
	--table-header-line-height: var(--wewrite-header-line-height, 1.5);
	--table-header-text-align: var(--wewrite-header-text-align, left);
	--table-min-width: var(--wewrite-min-width, 100px);
	--table-container-overflow: auto;
	--tabble-radius: 0;
	--table-width: max-content;
	--tabble-white-space: nowrap;
	--table-layout: fixed;
	--table-collapse: collapse;
	--table-td-max-width: 200px;
	--table-td-min-width: 50px;
	--table-td-text-align: left;
	--table-td-word-break: break-word;
	--table-td-white-space: normal;
}

.wewrite .table-container {
	display: flex;
	width: 100%;
	overflow-x: var(--table-container-overflow);
	padding: 1px;
	box-shadow: 0 4px 8px var(--wewrite-shadow, (0, 0, 0, 0.1));
}

.wewrite table {
	border-collapse: var(--table-collapse);
	width: var(--table-width);
	border-color: var(--table-border-color);
	white-space: var(--tabble-white-space);
	table-layout: var(--table-layout);
}

.wewrite thead tr {
	background-color: var(--table-header-background-color);
	color: var(--table-header-color);
	text-align: var(--table-header-text-align);
	line-height: var(--table-header-line-height);
	font-weight: var(--table-header-font-weight);
}

/* table body text */
.wewrite tbody tr{
	line-height: var(--table-line-height, 1.5);
	text-align: var(--table-text-align, left);
	background-color: var(--table-background-color); 
	color: var(--table-text-color);
	font-size: var(--table-font-size);
	font-weight: var(--table-font-weight);
}
/* border */
.wewrite th,
.wewrite tr,
.wewrite td {
	border-color: var(--table-border-color);
	border-width: var(--table-border-width);
	border-style: solid;
	max-width: var(--table-td-max-width);
	min-width: var(--table-td-min-width);
	text-align: var(--table-td-text-align);
	word-break: var(--table-td-word-break);
	white-space: var(--table-td-white-space);
}

.wewrite tr:nth-child(even) {
	background-color: var(--table-background-color-alt);
	/* 偶数行背景色 */;
}

.wewrite thead tr:first-child th:first-child {
	border-top-left-radius: var(--tabble-radius);
}
.wewrite thead tr:first-child th:last-child {
	border-top-right-radius: var(--tabble-radius);
}
.wewrite tbody tr:last-child td:first-child {
	border-bottom-left-radius: var(--tabble-radius);
}
.wewrite tbody tr:last-child td:last-child {
	border-bottom-right-radius: var(--tabble-radius);
}
